package com.bwie.controller;

import com.bwie.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class Controller {

    @Autowired
    public AsyncService asyncService;

    @PostMapping("/test1")
    public void test1(){
        asyncService.sendNotification();
    }

    @PostMapping("/test2")
    public void test2(){
        asyncService.sendNotification2();
    }
}
